﻿using System.Collections.Generic;
using ZilLion.Service.Core.DapperWrapper;
using ZilLion.Service.ZilLionOss.Domain.Entitys;

namespace ZilLion.Service.ZilLionOss.Domain.Repositorys.Interface
{
    public interface IOssRoleRouteRepository : IRespository
    {
        IEnumerable<OssRoleRouteEntity> GetOssRoleRoutesByRoleid(long roleid);
        IEnumerable<OssUserRouteEntity> GetOssRoleRoutesByUserid(long userid);
        void AddOssRoleRoute(OssRoleRouteEntity entity, UnitOfWork unitOfWork = null);
        void DeleteRouteByRoleid(long roleid, UnitOfWork unit = null);
    }
}